<%@ page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter" %>
<%@include file="/WEB-INF/pages/commons/commons.jsp" %>

<stripes:layout-render name="${_themePath}/basic-layout-without-navbar.jsp" _title="Signup">

    <stripes:layout-component name="_head">
        <c:out value="${_head}" escapeXml="false"/>
        <meta content="_signup_" name="_uniquePageId_"/>
    </stripes:layout-component>

    <stripes:layout-component name="_topNav">
        <H1>Signup</H1>
        <UL class="gc-topnav-tabs">
            <LI>&nbsp;</LI>
        </UL>
    </stripes:layout-component>


    <stripes:layout-component name="_content">
        <h2>&nbsp;</h2>
        <stripes:messages/>
        <stripes:errors />
        <jsecurity:hasPermission name="user:signup:*">
            <table width="100%">
                <stripes:form beanclass="foo.bar.wiki.web.action.general.SignupActionBean">
                    <tr>
                        <td>Username: </td>
                    <td><stripes:text name="user.username" /></td>
                    </tr>
                    <tr>
                        <td>Password:</td>
                        <td><stripes:password name="user.password"/></td>
                    </tr>
                    <tr>
                        <td>Confirm Password:</td>
                        <td><stripes:password name="confirmPassword"/></td>
                    </tr>
                    <tr>
                        <td>Email:</td>
                        <td><stripes:text name="user.email"/></td>
                    </tr>
                    <tr>
                        <td>Captcha: </td>
                        <td><img src="<c:url value='/kaptcha.jpg'/>" />&nbsp;<stripes:text name="captcha"/></td>
                    </tr>
                    <tr>
                        <td colspan="2"><stripes:submit name="signup">Signup</stripes:submit></td>
                    </tr>
                </stripes:form>
            </table>
        </jsecurity:hasPermission>
    </stripes:layout-component>
</stripes:layout-render>


